import axios from 'axios'

const service = axios.create({
  timeout: 5 * 1000
})
// 2.请求拦截器
service.interceptors.request.use(config => {
  return config
})

// 3.响应拦截器
service.interceptors.response.use(response => {

  return response.data
})

export default service